<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分组管理</title>
</head>
<body>
{extend name="extends/usercenter" /}
<div>
    {block name="left"}
    <h2>功能列表</h2>

    <li>
        <a href="{:url('index')}">
            分组列表
        </a>

    </li>
    <li>
        <a href="{:url('add')}">
            增加分组
        </a>
    </li>

    {/block}

    {block name="content"}

    <div>
        <a>

        </a>
        <table class="table table-hover">
            <thead>
            <tr>
                <th> id</th>
                <th> Name</th>
                <th>uid</th>
                <th>动作</th>

            </tr>
            </thead>
            <tbody>
            {volist name="group.list" id="lv"}
                <tr>
                    <td>
                        {$lv->id}
                    </td>
                    <td>
                        {$lv->name}
                    </td>
                    <td>
                        {$lv->user_id}
                    </td>
                    <td>
                        <a href="{:url('CateAdmin/add',['group_id'=>$lv->id])}"
                                type="button"
                           class="btn btn-primary btn-sm">
                            增加分类
                        </a>
                        <a href="{:url('CateAdmin/index',['group_id'=>$lv->id])}"
                                type="button" class="btn btn-primary btn-sm">
                            分类列表
                        </a>
                        <a type="button" class="btn btn-primary btn-sm">
                            增加分类
                        </a>
                    </td>
                </tr>

            {/volist}

            </tbody>

        </table>


    </div>
    <div>
        {$group.page}
    </div>


    {/block}
</div>
</body>
</html>